package com.dikang.yygh.service;

import com.dikang.yygh.model.hosp.Schedule;
import com.dikang.yygh.vo.hosp.ScheduleOrderVo;
import com.dikang.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ScheduleService {
    void save(Map<String, Object> paramMap);
    Page findPageSchedule(Integer page, Integer limit, ScheduleQueryVo scheduleQueryVo);

    void remove(String hoscode, String depcode);

    Map<String, Object> getRuleSchedule(long page, long limit, String hoscode, String depcode);

    /**
     * 获取排班的详细数据
     * @param hoscode
     * @param depcode
     * @param workDate
     * @return
     */
    List<Schedule> getDetailSchedule(String hoscode, String depcode, Date workDate);

    /**
     * 根据排班可预约日期数据
     * @param page
     * @param limit
     * @param hoscode
     * @param depcode
     * @return
     */
    Map<String,Object> getBookingScheduleRule(int page, int limit, String hoscode, String depcode);

    Schedule getById(String scheduleId);

    /**
     * 根据排班id获取预约下单数据
     * @param scheduleId
     * @return
     */
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);
    /**
     * 修改排班
     */
    void update(Schedule schedule);


}
